package com.struts2.student.action;

import com.strust2.action.BaseAction;

public class LoginAction extends BaseAction{

	private static final long serialVersionUID = 1L;
	
	private String userName;
	private String password;
	private Integer rememberPassword;
	
	public String login(){
		if("admin".equals(userName)){
			return SUCCESS;
		}
		message = "帐号与密码不匹配！";
		return LOGIN;
	}
	
	
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Integer getRememberPassword() {
		return rememberPassword;
	}
	public void setRememberPassword(Integer rememberPassword) {
		this.rememberPassword = rememberPassword;
	}

}
